<!-- $Id: order_query.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{include file="pageheader.htm"}
<script type="text/javascript" src="../js/calendar.php"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
          var arr = new Array();
          var sel_filter_attr = "{$lang.goods_inquiry_select}{$lang.goods_inquiry_brand_name}...";
          {foreach from=$cat_brand_list item=val key=att_cat_id}
            arr[{$att_cat_id}] = new Array();
            {foreach from=$val item=item key=i}
              {foreach from=$item item=attr_val key=attr_id}
                arr[{$att_cat_id}][{$i}] = ["{$attr_val}", {$attr_id}];
              {/foreach}
            {/foreach}
          {/foreach}

          function changeCat(obj, target_id)
          {
            var key = obj.value;
            var sel = document.getElementById(target_id); //window.ActiveXObject ? obj.parentNode.childNodes[4] : obj.parentNode.childNodes[5];
            sel.length = 0;
            sel.options[0] = new Option(sel_filter_attr, 0);
            if (arr[key] == undefined)
            {
              return;
            }
            for (var i= 0; i < arr[key].length ;i++ )
            {
              //sel.options[i+1] = new Option(arr[key][i][0], arr[key][i][1]);
              sel.options[i+1] = new Option(arr[key][i][0], arr[key][i][0]);
            }

          }
          
          </script>
<div class="main-div">
	<form action="goods_inquiry.php?act=inquiry_list" method="post" enctype="multipart/form-data" name="searchForm">
	  <table cellspacing="1" cellpadding="3" width="100%">
	    <tr>
	      <td><div align="right"><strong>{$lang.goods_inquiry_nation}</strong></div></td>
	      <td><select name="nation" id="nation" onChange="changeCat(this, 'brand_name')" style="width:150px;"><option value="">{$lang.goods_inquiry_select}{$lang.goods_inquiry_nation}...</option>{$cat_list}</select></td>
	      <td><div align="right"><strong>{$lang.goods_inquiry_specification}</strong></div></td>
	      <td><input type="text" name="specification" size="20" /></td>	  
	    </tr>
	    <tr>
	      <td><div align="right"><strong>{$lang.goods_inquiry_brand_name}</strong></div></td>
	      <td><select name="brand_name" id="brand_name" style="width:150px;"><option value="">{$lang.goods_inquiry_select}{$lang.goods_inquiry_brand_name}...</option></select></td>
	      <td><div align="right"><strong>{$lang.goods_inquiry_model}</strong></div></td>
	      <td><input type="text" name="model" size="20" /></td>
	    </tr>
	    
	    <tr>
	      <td colspan="4"><div align="center">
<input type="submit" value="{$lang.button_search}" class="button" />
	      </div></td>
	      </tr>
	  </table>
	</form>
</div>
{insert_scripts files="../js/transport.js,../js/region.js"}
{literal}
<script language="JavaScript">
region.isAdmin = true;
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}
</script>
{/literal}
{include file="pagefooter.htm"}
